<template>
  <div class="homecom">
    <header>
      <input type="button" value="退出登录" @click="btn1()">
    </header>
  </div>
</template>

<script>
export default {
    name : "HomeCom",
    data(){
      return{

      }
    },
    methods : {
      btn1(){
        sessionStorage.clear();
        this.$router.push('/login');
      }
    }
}
</script>

<style>

</style>